package com.xnyzc.lhy.order.controller.jpush;


import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.common.exception.PangException;
import com.xnyzc.lhy.common.penum.EErrorCode;
import com.xnyzc.lhy.common.util.CheckUtil;
import com.xnyzc.lhy.order.service.jpush.OajPushService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 极光推送封装相关
 * </p>
 *
 * @author liuju
 * @since 2019-09-20
 */
@RestController
@RequestMapping("/core/oajPush")
public class OajPushController {


    @Autowired
    private OajPushService oajPushService;


    /**
     * 极光推送调用示例
     * @return
     */
    @PostMapping(value = "/sendJPushMessage")
    public Rv sendJPushMessage() {
        return Rv.wrap(oajPushService.sendJPushMessage());
    }

}
